<?php
/**
 * @var \common\models\User $user
 */
\common\assets\BootstrapTable::register($this);
$this->title = "我的主页";
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-default-index">
    <div class="row">
        <div class="col-lg-12">
            <?=\kartik\detail\DetailView::widget([
	            'model'=>$user,
//	            'condensed'=>true,
	            'hover'=>true,
	            'mode'=>\kartik\detail\DetailView::MODE_VIEW,
//	            'panel'=>[
//		            'heading'=>$user->username,
//		            'type'=>\kartik\detail\DetailView::TYPE_PRIMARY,
//	            ],
	            'attributes'=>[
		            'username',
                    'email',
                    'phone',
                    'company',
                    'created_at:datetime',
                    'updated_at:datetime',
		            [
			            'attribute'=>'user_type',
			            'value'=>\common\models\User::getUserType()[$user->user_type],
		            ],
		            [
			            'attribute'=>'status',
			            'value'=>\common\models\User::getStatus()[$user->status],
		            ],
	            ],
//	            'template' => '<tr><th>{label}</th><td>{value}</td></tr>',
//	            'options' => ['class' => 'table table-striped table-bordered detail-view'],
            ]); ?>
        </div>
    </div>
</div>
